Page({
  data: {
    active: 3,
    sourceItem: [
      // { name: '视频', url: '/pages/sources/video/video', icon: 'video-o', id: '0' },
      { name: '网站', url: '/pages/sources/site/site', icon: 'apps-o', id: '1' },
      { name: 'pdf', url: '/pages/sources/pdf/pdf', icon: 'orders-o', id: '2' }
    ]
  },
  onShow() {
    if (typeof this.getTabBar === 'function' && this.getTabBar()) {
      this.getTabBar().setData({
        active: 3
      })
    }
  }
})
